package com.example.myapplication;

import android.app.Activity;
import android.os.Bundle;
import android.util.Log;

/**
 * Created by xuanyang on 2018/2/13.
 */

public class SecondActivity extends Activity{







    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        Student stu = getIntent().getParcelableExtra("stu");
        System.out.println("id:" + stu.getId());
        System.out.println("name:" + stu.getName());

        Log.i(Constants.LogTag, String.valueOf(stu.getId()));
        Log.i(Constants.LogTag, stu.getName());




    }


}
